]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/remote-access: Remove menu for stopping screencasts
authorIvan Molodetskikh <yalterz@gmail.com>
Wed, 9 Feb 2022 06:59:03 +0000 (09:59 +0300)
committerMarge Bot <marge-bot@gnome.org>
Sat, 12 Feb 2022 14:36:54 +0000 (14:36 +0000)
It is now handled by a dedicated panel.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2163>

js/ui/status/remoteAccess.js

index a63b257c509aef98bb51f707d8f4fed3c3359d66..605ad69c68ae5d604f80fa484da35c864059cada 100644 (file)
@@ -51,15 +51,6 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator {
         this._recordingIndicator = this._addIndicator();
         this._recordingIndicator.icon_name = 'media-record-symbolic';
         this._recordingIndicator.add_style_class_name('screencast-indicator');
-
-        this._recordingItem = new PopupMenu.PopupSubMenuMenuItem(
-            _('Screen Recording in Progress'),
-            true
-        );
-        this._recordingItem.menu.addAction(_('Stop'),
-            () => Main.screenshotUI.stopScreencast());
-        this._recordingItem.icon.icon_name = 'media-record-symbolic';
-        this.menu.addMenuItem(this._recordingItem);
     }
 
     _isScreenShared() {
@@ -80,7 +71,6 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator {
         }
 
         this._recordingIndicator.visible = this._isRecording();
-        this._recordingItem.visible = Main.screenshotUI.screencast_in_progress;
     }
 
     _onStopped(handle) {